package demo.component.student;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("spring-config.xml");
        StudentControl studentControl=context.getBean("studentControl",StudentControl.class);
        studentControl.sayHi();
    }
}
